?><?
class cls_container_list extends cls_container{
  var $list = false;
  var $inpage=defRelatedLimit;

  function &get_instance_container(){
    if($this->list!==false){
      $limit  =$this->get_limit();
      $fields =$this->get_fields();
      $sql="select $fields from instance where instance_id in(".$this->list.") $limit ";
      return GetData($sql);
    }else{
      die("List container not initialized");
    }
  }
  function force_get_count(){
    return get_single_val("select count(*) as count_list from instance where instance_id in(".$this->list.")");
  }
  /// 
  function is_permanent(){return true;}
  /// 
  function cached(){return false;}
}